const mongoose = require('mongoose');
/*
员工编号：employee_id
员工姓名 employee_name
员工职位： employee_zhiwei
电话： phone
邮箱 email


*/
const employeeSchema = new mongoose.Schema({
    employee_id: {
        type: String,
        unique: true,
        required: true
    },
    employee_name: {
        type: String,
        unique: true,
        required: true
    },
    employee_zhiwei: {
        type: String,
        unique: true,
        required: true
    },
    phone: {
        type: String,
        require: true
    },
    email: {
        type: String,
        required: true
    }

})
module.exports = mongoose.model('employeeInfos', employeeSchema);